import { NativeModules } from 'react-native';

const recognize = (
  imagePath: string,
  callBack: (res: string) => void
): void => {
  if (NativeModules.GestureRecognize) {
    NativeModules.GestureRecognize.recognize(imagePath, callBack);
  }
};

export default {
  recognize
};
